<?php
namespace Hive\Workflow;
/**
 * Workflow Type,
 * 
 * It represent a type of workflow
 * 
 *
 * @author Xavier VILAIN
 * @package Hive\Workflow
 *
 * @property string	$type			Id of the Source
 * @property string	$label			Source name
 * @property bool	$standard		Is a standard type (can't be deleted)
 * @property bool	$active			Is an active type (can be selected)
 */
class Type  extends \Fox\Object\Customizing {

	/**
	 * Reverse Link to Workflow
	 * @var string
	 */
	const LINK_WORKFLOWS = 'workflows';
	
	/**
	 * 
	 * Standard Type
	 * @var string
	 */
	const STANDARD = '1';
	
}
\Fox\Dao::infos(Type::className(),new \Fox\Object\Info('workflow_types', \Fox\Databases::DB_APP));

\Fox\Dao::useZone(Type::className(),new \Fox\Dao\DiskTimeCacheZone(\Fox\Dao\DiskTimeCacheZone::PERIOD_FOREVER,Type::cacheDirectory()));